package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * MotiRestypeRel entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MOTI_RES_REL")
public class MotiResRel implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -1479618306583567508L;

    // Fields    
    private Long id;
    private Long resGroupId;
    private Long resId;

    // Constructors

    /** default constructor */
    public MotiResRel() {
    }

    /** minimal constructor */
    public MotiResRel(Long id) {
        this.id = id;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "MOTI_RES_REL_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_GROUP_ID", precision = 18, scale = 0)
    public Long getResGroupId() {
        return resGroupId;
    }

    public void setResGroupId(Long resGroupId) {
        this.resGroupId = resGroupId;
    }

    @Override
    public String toString() {
        return "MotiRestypeRel [id=" + id + ", resGroupId=" + resGroupId + ", resId=" + resId + "]";
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

}